<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        // break 可以提前结束循环
        // continue  继续,结束本次循环继续下一次




        for (var i = 0; i < 10; i++) {
            if (i === 3) {
                // break;
                continue;
            }
            console.log(i);     // 0 1 2 4 5 6 7 8 9   跳过了3

        }

    </script>

</body>

</html>